package com.mrjy.live.dao;

import java.util.Date;
import java.util.List;

import com.mrjy.common.entity.WisPayment;

public interface IWisPaymentDao {
    int deleteByPrimaryKey(Integer id);

    int insert(WisPayment record);

    int insertSelective(WisPayment record);

    WisPayment selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(WisPayment record);

    int updateByPrimaryKey(WisPayment record);
    
  //删除订单根据用户id和课程id
  	int deleteByUserAndLesson(WisPayment wisPayment);
    
  //删除所有订单根据课程id
  	int deleteAllByliveInfoId(int liveInfoId);
  	
  	WisPayment queryPayment(WisPayment wisPayment);
  	
  	WisPayment queryWaitingPayment(WisPayment wisPayment);
  	
  	Date getTime();
  	
  	WisPayment selectByCode(String Code);

  	WisPayment selectCompleteByCode(String out_trade_no);

	WisPayment selectWaitingByCode(String out_trade_no);

	//直播订单
	List<WisPayment> queryPageLivePayment(WisPayment wisPayment);
	
	int countLivePayment(WisPayment wisPayment);
	
	WisPayment countBySchoolMoney(WisPayment wisPayment);
	
	List<WisPayment> queryOrderInfo(int userId);
}